package com.itzz.spring_zhoneHeng.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Messages {
    @TableId(value = "id",type = IdType.AUTO)
    Integer id;
    String messages;
//    ,timezone = "GMT+8"
    @JsonFormat(pattern="YYYY-MM-dd HH:mm:ss")
    Date date;
}
